import {MenuItem} from './model';

/**
 * Created by Administrator on 2018/9/4 0004.
 * 本地开发使用菜单
 * 生产环境中菜单信息将由登录接口返回
 */
/*const my: MenuItem = {
  menuName: "团队管理",
  menuIcon: 'anticon anticon-team',
  menuUrl: '/main/my',
  subMenuList: [
    {
      menuName: "团队列表",
      menuUrl: '/main/my'
    }
  ]
};*/
const user: MenuItem = {
  menuName: '用户管理',
  menuIcon: 'anticon anticon-user',
  menuUrl: '/main/user',
  subMenuList: [
    {
      menuName: '用户列表',
      menuUrl: '/main/user/users'
    },
    {
      menuName: '银行账户管理',
      menuUrl: '/main/user/user-bank-card'
    },
    {
      menuName: '押金管理',
      menuUrl: '/main/user/user-deposit'
    },
    {
      menuName: '激活币账户',
      menuUrl: '/main/user/user-active'
    },
    {
      menuName: '金兰宝账户',
      menuUrl: '/main/user/user-jlb'
    },
    {
      menuName: '矿石账户',
      menuUrl: '/main/user/user-ore'
    },
    {
      menuName: '挖金兰宝记录',
      menuUrl: '/main/user/user-miner-work-record'
    },
    {
      menuName: '矿机购买记录',
      menuUrl: '/main/user/user-purchase-miner-record'
    }
  ]
};
const miner: MenuItem = {
  menuName: '矿机管理',
  menuIcon: 'anticon anticon-shopping-cart',
  menuUrl: '/main/miner',
  subMenuList: [
    {
      menuName: '矿机管理',
      menuUrl: '/main/miner'
    }
  ]
};
const news: MenuItem = {
  menuName: '新闻管理',
  menuIcon: 'anticon anticon-message',
  menuUrl: '/main/news',
  subMenuList: [
    {
      menuName: '新闻列表',
      menuUrl: '/main/news/news'
    }
  ]
};
const platform: MenuItem = {
  menuName: '平台信息',
  menuIcon: 'anticon anticon-shop',
  menuUrl: '/main/platform',
  subMenuList: [
    {
      menuName: '平台账号',
      menuUrl: '/main/platform/platform-account'
    },
    /*{
      menuName: '平台日志',
      menuUrl: '/main/platform/platform-log'
    }*/
  ]
};
const star: MenuItem = {
  menuName: '星级管理',
  menuIcon: 'anticon anticon-star',
  menuUrl: '/main/star',
  subMenuList: [
    {
      menuName: '星级',
      menuUrl: '/main/star/star-levels'
    },
    {
      menuName: '星级规则',
      menuUrl: '/main/star/star-level-rule'
    },
    {
      menuName: '星级升级记录',
      menuUrl: '/main/star/star-record'
    }
  ]
};
const finance: MenuItem = {
  menuName: '财务管理',
  menuIcon: 'anticon anticon-shop',
  menuUrl: '/main/finance',
  subMenuList: [
    {
      menuName: '充值/扣除',
      menuUrl: '/main/finance/recharge',
    },
    {
      menuName: '激活币记录',
      menuUrl: '/main/finance/actives',
    },
    {
      menuName: '转账记录',
      menuUrl: '/main/finance/record',
    },
  ]
};

const setting: MenuItem = {
  menuName: '平台设置',
  menuIcon: 'anticon anticon-setting',
  menuUrl: '/main/setting',
  subMenuList: [
    {
      menuName: '系统设置',
      menuUrl: '/main/setting/system'
    },
    {
      menuName: '用户端首页',
      menuUrl: '/main/setting/app-home'
    }
  ]
};

export const MENUS: Array<MenuItem> = [
  user, miner, platform, star, news, finance, setting
];

